package fr.neyb.wesb.core.data.compare.comparators;

import fr.neyb.wesb.core.data.compare.AbstractFieldComparator;
import fr.neyb.wesb.core.data.compare.Order;
import fr.neyb.wesb.core.data.content.TextableField;

public class TextableFieldComparator extends
		AbstractFieldComparator<TextableField> {

	public TextableFieldComparator(Order o) {
		super(TextableField.class, o);
	}

	@Override
	protected int PreCheckedCompare(TextableField o1, TextableField o2) {
		return o1.toCBString().compareTo(o2.toCBString());
	}
}
